<?php
session_start();
if(isset($_SESSION['username']) && isset($_SESSION['password']) ){
	
	if($_SESSION['type'] == 1){
		
	}
	else if($_SESSION['type'] == 2){
		header("location:cashier.php");
	}
	else if ($_SESSION['type'] == 3){
		header("location:profile.php");
	}

}
else{
header("location:index.php");

}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Basci-Admin</title>
  
	<!--for the templates-->
	<link rel="stylesheet" type="text/css" href="css/admin_templatemo_style.css"  />
	<link rel="stylesheet" type="text/css" href="css/menu.css"  />
	 <link rel="stylesheet" href="css/styless.css" type="text/css" media="screen"/>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
	<link rel="stylesheet" type="text/css" href=" css/jquery-ui-1.8.22.custom.css"/>
       <script type="text/javascript" src="js/sliding.form.js"></script>
	
   
   
<script>
$(document).ready(function(){
	$('#calendar').datepicker({
		inline: true
	});
	
	
	
	

	
})

checked = false;		  
function checkedAll(){
	if (checked == false){
		checked = true
	}
	else{
	checked = false
	}
	for (var i = 0; i < document.getElementById('myform').elements.length; i++){
		document.getElementById('myform').elements[i].checked = checked;
	}	
}

</script>
<style>

</style>
</head>

<body id="home">

<div id="templatemo_header_wrapper">
     <div id="templatemo_header">
        <div id="site_title"><a href="#">BASCI<span>SALES</span></a></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
           
			<div id="menu">
				<ul class="level1">
					<li class="level1-li"><a class="level1-a" href=" index.php">Home</a></li>
					<li class="level1-li"><a class="level1-a drop" href=" about.php">About</a></li>
					<li class="level1-li"><a class="level1-a drop" href=" shop.php">Shop</a>
					
						<ul class="level2">
							<li><a href="#url">Men Clothes</a></li>
							<li><a class="fly" href="#url">Women Garment</a></li>
							<li><a href="#url">Kids Wear</a></li>
							<li><a class="fly" href="#url">Couple Shirts</a></li>
						</ul>
					</li>
					<li class="level1-li"><a class="level1-a drop" href=" services.php">Services</a>
						<!--ul class="level2">
							<li><a href="#url">Where to go</a></li>
							<li><a href="#url">What to do</a></li>
							<li><a href="#url">Places of interest</a></li>
							</ul-->
					</li>
					<li class="level1-li"><a class="level1-a" href="#url">Forum</a></li>
					
				</ul>
			
			</div>
	
            <br style="clear: left" />
        </div> <!-- end of templatemo_menu -->
    </div> <!-- END of header -->
</div>

<!--2nd bar menu-->
<div id="templatemo_main_top">

<?php
	include("include/div_logout.php");
?>

</div>
<div id="templatemo_main">
	<div class="col col_23">
        <h2>Control Panel</h2>
		<div id="calendar"></div>
		<p></p>
	
	
		<h3>Add Transaction</h3>
        <div id="horizontal_menu">
			<ul class="horizontal_menu2">
				<li class="p1"><a href="admin.php"><span>Pending/Active Members</span></a></li>
			
			</ul>
			
		</div>
		
		<div id="horizontal_menu">
			<ul class="horizontal_menu2">
				
				<li class="p3"><a href="add_vehicles.php"><span>Vehicles</span></a></li>
				
			</ul>
			
		</div>
	</div>
	
	
    <div class="col col_13 no_margin_right">
		
		<h3>Dash Board</h3>
	   <div class="testimonial">
            
			<div id="dashboard">
				<?php include("admin/dashboard.php"); ?>
			
			</div>
			
		</div>
		
		
		<h3>Add Vehicles</h3>
		<div class="testimonial">
         	<div id="users_list">
			
			<iframe src="inputvehicles.php" height="490" width="900" scrolling="no" frameborder="0">
			
			</iframe></div>
		</div>
		
				
    	<h3>View Tables</h3>
        <div class="testimonial">
         	<div id="users_list">
			
			<iframe src="tblvehicles.php" height="490" width="900" scrolling="no" frameborder="0">
			
			</iframe></div>
		</div>
       
		
		
		
    
	
	</div>    
    <div class="cleaner h40"></div>
        
    
    
    <div class="cleaner"></div>
</div> <!-- END of main -->

<?php //include("include/footer.php");?>

</body>
</html>